package com.tuliyou.controller;

import com.tuliyou.common.util.Result;
import com.tuliyou.service.RecommendationService;
import com.tuliyou.vo.RecommendationVO;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/recommendations")
public class RecommendationController {

    @Resource
    private RecommendationService recommendationService;

    @GetMapping
    public Result<List<RecommendationVO>> getRecommendations() {
        return recommendationService.getRecommendations();
    }

}
